import request from '@/utils/request'


//试制问题差错比率
export function selectAllTrialRate(query) {
    return request({
        url: '/quality/analysis/Trial/rate',
        method: 'post',
        params: query
    })
}

// 各系统试制问题总体情况
export function selectAllTrialRateBySystem(query) {
    return request({
        url: '/quality/analysis/Trial/rate/system',
        method: 'post',
        params: query
    })
}


//各组别试制问题情况-按车型分(0 牵引车; 1 自卸车; 2 专用车)
export function selectAllTrialRateBySystemQy(query) {
    return request({
        url: '/quality/analysis/Trial/rate/system/type?type=0',
        method: 'post',
        params: query
    })
}

export function selectAllTrialRateBySystemZx(query) {
    return request({
        url: '/quality/analysis/Trial/rate/system/type?type=1',
        method: 'post',
        params: query
    })
}

export function selectAllTrialRateBySystemZy(query) {
    return request({
        url: '/quality/analysis/Trial/rate/system/type?type=2',
        method: 'post',
        params: query
    })
}

//试制问题数量-按问题种类分
export function selectAllTrialRateByQuestion(query) {
    return request({
        url: '/quality/analysis/Trial/rate/question',
        method: 'post',
        params: query
    })
}

